﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using C2E2C.Data.Mapping;

namespace C2E2C.Data
{
    public partial class C2E2CEntityContext
    {
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<OneToManyCascadeDeleteConvention>();
            //modelBuilder.Conventions.Remove<IncludeMetadataConvention>();

            modelBuilder.AddConfiguration(new AccountEntityTypeConfiguration());
        }
    }
}
